<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Sample title</title>
    
    <g:javascript library="prototype" />
  </head>
  <body>
    
   <g:javascript> 
    function test(e){
    var textArea2 = document.getElementById('textArea2')
    textArea2.value = e.responseText
    }
  </g:javascript>
    
    <h1>Sample line</h1>
    
    <g:textArea name="textArea1" class="textArea1" id="textArea1"
                          onkeyup="${remoteFunction(action:'autotag',onComplete:'test(e)',params:'\'value=\' + this.value')}"/>
     <g:textArea name="textArea2" id="textArea2"/>
  </body>
</html>
